home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 23.zip
/
BS1 part 23
/
Hisoft Basic v1.03 disk 2.adf
/
demo.bas
< prev
next >
Wrap
BASIC Source File
|
1988-12-19
|
613b
|
37 lines
' shows all 4096 colours simultaneously from HiSoft BASIC
' this uses HAM mode which is difficult to explain and even
' harder to use!
REM $EVENT OFF
SCREEN 1,320,200,6,0,&h800
WINDOW 1,"HiSoft BASIC HAM Mode Demo",(20,20)-(280,170),,1
DEFINT a-z
x=0:y=0:c=0
r=0:g=0:b=0
DO
PSET (x,y),0
PSET (x+1,y),r+&b010000
PSET (x+2,y),g+&b100000
PSET (x+3,y),b+&b110000
LINE -STEP(3,0),b+&b110000
x=x+8
INCR r
IF r=16 THEN
r=0: INCR g
IF g=16 THEN
g=0: INCR b
IF b=16 THEN EXIT LOOP
END IF
END IF
IF x>=256 THEN x=0:INCR y
LOOP
LOCATE 18,1
PRINT "Press a key or click";
REM $EVENT ON
SLEEP
SYSTEM